package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import com.examples.core.enums.YesOrNoEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @className: BizTemplateStyleEnum
 * @description: TODO
 * @author: DAIYALU
 * @date: 2024/6/11
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum BizTemplateStyleEnum implements BaseEnum<String> {

    LANDING("01","落地页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.YES,1),
    COLLECT("02","集合页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.NO,2),
    ANIMATION("03","动效页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.NO,3),
    PAY("04","支付页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.NO,4),
    GUIDE("05","引导页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.NO,5),
    RESULT("06","结果页", BizStyleTypeEnum.PUT_IN, YesOrNoEnum.NO,6),
    RED("07","红包", BizStyleTypeEnum.OPERATIONS, YesOrNoEnum.NO,7),
    ACTIVITY("08","活动", BizStyleTypeEnum.OPERATIONS, YesOrNoEnum.NO,8);

    private final String code;

    private final String desc;

    private final BizStyleTypeEnum styleTypeEnum;

    private final YesOrNoEnum reqFlag;

    private final Integer sort;

    public static BizTemplateStyleEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(BizTemplateStyleEnum.class, code);
    }
}
